<template>
  <div class="front-container">
    <el-container>
      <el-header>
        <!--<div class="logo"></div>
        <div class="title">天宇の博客</div>
        <NavMenu />-->
        <el-row :gutter="10">
          <el-col :xs="20" :sm="8" :md="8" :lg="10" :xl="12">
            <div class="logo"></div>
            <div class="title">天宇の博客</div>
          </el-col>
          <el-col :xs="0" :sm="16" :md="16" :lg="14" :xl="12">
            <NavMenu />
          </el-col>
        </el-row>
      </el-header>
      <el-main>
        <!-- 路由占位符 -->
        <router-view></router-view>
      </el-main>
    </el-container>
  </div>
</template>

<script>
import NavMenu from "../components/NavMenu";
export default {
  name: 'App',
  components: {
    NavMenu,
  }
}
</script>

<style scoped lang="less">
  .front-container {
    width: 100%;
    height: 100%;
    max-width: 1000px;
    margin: 0 auto;
  }
  .el-header {
    width: 1000px;
    background-color: #B3C0D1;
    color: #333;
    text-align: center;
    line-height: 60px;
    position: fixed;
    top: 0;
    z-index: 10;
  }
  .el-main {
    background-color: #E9EEF3;
    color: #333;
    text-align: center;
    padding: 0;
    margin-top: 60px;
    min-height: calc(100vh - 60px);
  }

  .logo {
    margin-left: -20px;
    float: left;
    width: 108px;
    height: 60px;
    background: url(../assets/logo.png) center center / contain no-repeat;
  }
  .title {
    float: left;
    padding: 0 10px;
    line-height: 60px;
    color: #fff;
    font-size: 20px;
  }
</style>
